//package com.lx.boot.web;
//
//
//import com.lx.annotation.Note;
//import com.lx.boot.OS;
//import com.lx.boot.web.annotation.Auth;
//import com.lx.boot.web.config.AuthProperties;
//import com.lx.boot.web.config.WebProperties;
//import com.lx.constant.DefaultResult;
//import com.lx.entity.ExpireCache;
//import com.lx.entity.Result;
//import com.lx.entity.UserInfo;
//import com.lx.util.LX;
//import jakarta.servlet.http.HttpServletRequest;
//import jakarta.servlet.http.HttpServletResponse;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.method.HandlerMethod;
//import org.springframework.web.servlet.HandlerInterceptor;
//import org.springframework.web.servlet.ModelAndView;
//
//import java.nio.charset.StandardCharsets;
//import java.util.Optional;
//
//import static com.lx.constant.DefaultBaseConstant.*;
//
//
///**
// * @author ylx
// * @description 权限拦截器
// * @date 2017/11/17
// * @since 1.0
// */
//@Slf4j
//public class DefaultSecurityInterceptor implements HandlerInterceptor {
//
//    @Autowired
//    private AuthUtil authUtil;
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        if (!(handler instanceof HandlerMethod)) {
//            return true;
//        }
//        return true;
//    }
//
//    @Override
//    public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception {
////        log.info("结束调用微服务渲染视图");
//    }
//
//    @Override
//    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
//    }
//}
